/**
 * 模拟电影数据
 * 用于API不可用时的演示
 */

export const mockMovies = [
  {
    id: '1292052',
    title: '肖申克的救赎',
    original_title: 'The Shawshank Redemption',
    rating: 9.7,
    year: '1994',
    images: {
      small: 'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p480747492.jpg',
      medium: 'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p480747492.jpg',
      large: 'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p480747492.jpg'
    },
    genres: ['剧情', '犯罪'],
    directors: ['弗兰克·德拉邦特'],
    casts: ['蒂姆·罗宾斯', '摩根·弗里曼', '鲍勃·冈顿'],
    summary: '希望让人自由。'
  },
  {
    id: '1291546',
    title: '霸王别姬',
    original_title: 'Farewell My Concubine',
    rating: 9.6,
    year: '1993',
    images: {
      small: 'https://img2.doubanio.com/view/photo/s_ratio_poster/public/p2561716440.jpg',
      medium: 'https://img2.doubanio.com/view/photo/s_ratio_poster/public/p2561716440.jpg',
      large: 'https://img2.doubanio.com/view/photo/s_ratio_poster/public/p2561716440.jpg'
    },
    genres: ['剧情', '爱情', '同性'],
    directors: ['陈凯歌'],
    casts: ['张国荣', '张丰毅', '巩俐'],
    summary: '风华绝代。'
  },
  {
    id: '1292720',
    title: '阿甘正传',
    original_title: 'Forrest Gump',
    rating: 9.5,
    year: '1994',
    images: {
      small: 'https://img2.doubanio.com/view/photo/s_ratio_poster/public/p2372307692.jpg',
      medium: 'https://img2.doubanio.com/view/photo/s_ratio_poster/public/p2372307692.jpg',
      large: 'https://img2.doubanio.com/view/photo/s_ratio_poster/public/p2372307692.jpg'
    },
    genres: ['剧情', '爱情'],
    directors: ['罗伯特·泽米吉斯'],
    casts: ['汤姆·汉克斯', '罗宾·怀特', '加里·西尼斯'],
    summary: '生活就像一盒巧克力。'
  },
  {
    id: '1295644',
    title: '这个杀手不太冷',
    original_title: 'Léon',
    rating: 9.4,
    year: '1994',
    images: {
      small: 'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p511118051.jpg',
      medium: 'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p511118051.jpg',
      large: 'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p511118051.jpg'
    },
    genres: ['剧情', '动作', '犯罪'],
    directors: ['吕克·贝松'],
    casts: ['让·雷诺', '娜塔莉·波特曼', '加里·奥德曼'],
    summary: '这是关于两个小孩的故事。'
  },
  {
    id: '1292063',
    title: '美丽人生',
    original_title: 'La vita è bella',
    rating: 9.6,
    year: '1997',
    images: {
      small: 'https://img2.doubanio.com/view/photo/s_ratio_poster/public/p2578474613.jpg',
      medium: 'https://img2.doubanio.com/view/photo/s_ratio_poster/public/p2578474613.jpg',
      large: 'https://img2.doubanio.com/view/photo/s_ratio_poster/public/p2578474613.jpg'
    },
    genres: ['剧情', '喜剧', '爱情'],
    directors: ['罗伯托·贝尼尼'],
    casts: ['罗伯托·贝尼尼', '尼可莱塔·布拉斯基', '乔治·坎塔里尼'],
    summary: '最美的谎言。'
  },
  {
    id: '1295124',
    title: '泰坦尼克号',
    original_title: 'Titanic',
    rating: 9.5,
    year: '1997',
    images: {
      small: 'https://img9.doubanio.com/view/photo/s_ratio_poster/public/p457760035.jpg',
      medium: 'https://img9.doubanio.com/view/photo/s_ratio_poster/public/p457760035.jpg',
      large: 'https://img9.doubanio.com/view/photo/s_ratio_poster/public/p457760035.jpg'
    },
    genres: ['剧情', '爱情', '灾难'],
    directors: ['詹姆斯·卡梅隆'],
    casts: ['莱昂纳多·迪卡普里奥', '凯特·温斯莱特', '比利·赞恩'],
    summary: '我心永恒。'
  }
]

/**
 * 获取模拟电影数据
 */
export const getMockMovies = (limit: number = 20, start: number = 0) => {
  const end = start + limit
  const items = mockMovies.slice(start, end)
  return {
    subjects: items,
    total: mockMovies.length,
    start,
    count: items.length
  }
}